<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>个人信息</title>
    <link rel="stylesheet" th:href="@{/css/layui.css}"  media="all">
    <script th:src="@{/js/layui.js}" charset="utf-8"></script>
</head>
<body>
<div>
    <div style="margin-top: 10px">
       <button type="button" class="layui-btn layui-btn-normal" onclick="window.location.href='/check/main'">返回上一级</button>
    </div>
    <div>
        <table class="layui-table" lay-skin="line">
            <colgroup>
                <col width="150">
                <col width="150">
                <col width="200">
                <col>
            </colgroup>
            <thead>
            <tr>
                <th>用户名称</th>
                <th>电话号码</th>
                <th>电子邮箱</th>
                <th>工作类型</th>
            </tr>
            </thead>

            <tbody>
            <div th:if="${type} eq 'admin'">
                    <tr>
                        <td>[[${Admin.getName()}]]</td>
                        <td>[[${Admin.getPhone()}]]</td>
                        <td>[[${Admin.getEmail()}]]</td>
                        <td>管理员</td>
                    </tr>
            </div>
            <div th:if="${type} eq 'employee'">
                    <tr>
                        <td th:text="${Employee.getName()}"></td>
                        <td th:text="${Employee.getPhone()}"></td>
                        <td th:text="${Employee.getEmail()}"></td>
                        <td th:text="${Employee.getJob()}"></td>
                    </tr>
            </div>
            </tbody>
        </table>
    </div>
</div>
</body>
</html>